/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ui.gui.actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JFrame;

/**
 *
 * @author stephane
 */

public class ExitAction extends AbstractAction
{
    private static final long serialVersionUID = 1L;
    public ExitAction(JFrame parent)
    {
        super("Exit Clac", new javax.swing.ImageIcon(ExitAction.class.getResource("/resources/exit.png")));
        putValue(SHORT_DESCRIPTION, "Exit CLAC workbench"); 
    }
    
    @Override
    public void actionPerformed(ActionEvent e) {
        common.Commands.RunCommand("exit", true);
    }
    
}